package com.car.controller;

import com.car.dao.Stores_scoreMapper;
import com.car.service.IStores_scoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Description:
 * @author: hsy
 * @version: v1.0
 * @Date
 */
@Controller
public class Stores_scoreController {
    @Autowired
    @Qualifier("stores_scoreService")
    private IStores_scoreService iStores_scoreService;

    @RequestMapping(value = "/findStores_scoreAll")
    public String findAll(Model model){
        List<Stores_scoreMapper> all = iStores_scoreService.findAll();
        model.addAttribute("all",all);
        return "bosssystem/score_sort.jsp";
    }
}
